#![no_std]
#![no_main]
#![feature(stdsimd)]

use core::{hint, panic::PanicInfo};

use cpuindex::set_this_processor_id;
use entry_macro::start_kernel;

#[start_kernel]
fn main() -> ! {
    set_this_processor_id(0);
    loop {
        unsafe {
            core::arch::aarch64::__wfe();
        }
    }
}

#[panic_handler]
pub fn panic_handler(_: &PanicInfo) -> ! {
    loop {
        hint::spin_loop();
    }
}
